package com.suli.account.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author SuLi
 * @since 2022-04-14
 */
@Getter
@Setter
@TableName("user_ticket")
public class UserTicket implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单id
     */
      @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 单张门票id
     */
    @TableField("ticket_id")
    private String ticketId;

    /**
     * 门票名称
     */
    @TableField("ticket_name")
    private String ticketName;

    /**
     * 购票时间
     */
    @TableField("ticket_buy_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date ticketBuyTime;

    /**
     * 过期时间
     */
    @TableField("ticket_expire_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date ticketExpireTime;

    /**
     * 门票状态
     */
    @TableField("ticket_status")
    private Integer ticketStatus;

    /**
     * 门票价格
     */
    @TableField("ticket_price")
    private BigDecimal ticketPrice;

}
